import http from "@/utils/http.js";

// 上传头像
export function uploadAvatar(formData) {
    return http({
        method: "POST",
        url: "/images/upload", // 这里是头像上传的接口
        data: formData,
        headers: {
            "Content-Type": "multipart/form-data", // 设置请求头为 multipart/form-data
        }
    });
}